<extend name="Public:base" />
<block name="content">
    <style type="text/css">
        li{
            list-style: none;
        }
    </style>
    <script type="text/javascript" src="Common/js/My97DatePicker/WdatePicker.js"></script>
<div class="table-responsive">
    <table class="table table-striped table-bordered table-hover search-form" id="nav-table">
        <thead>
        <th>
            审核时间：<input id="startDate" name="start_time" class="Wdate" type="text" onfocus="WdatePicker({dateFmt:'yyyy-M-d 00:00:00',minDate:'%y-%M-{%d'})"/> - <input id="endDate" name="end_time" class="Wdate" type="text" onfocus="WdatePicker({dateFmt:'yyyy-M-d 00:00:00',minDate:'%y-%M-{%d}'})"/>
            姓名：<input name="name" type="text" placeholder="" value="{:I('name')}" style="width:120px;" />
            手机号：<input name="phone" type="text" placeholder="" value="{:I('phone')}" />
            <a class="btn btn-primary btn-sm radius5" href="javascript:;" id="search" url="{:U('Category/searchone')}">查询</a>
        </th>
        </thead>
    </table>
</div>
<div class="table-responsive">
    <table class="table table-striped table-bordered table-hover" id="mytable">
        <thead>
        <tr>
            <th>人员信息</th>
            <th>申请时间</th>
            <th>状态</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <volist name="data" id="vo">
            <tr>
                <td><li>姓名：{$vo.id_name}</li><li>电话：{$vo.phone}</li></td>
                <td>{$vo.add_time}</td>
                <td>
                    <?php
					switch($vo['status']){
						case '0':
						echo '<span class="green bold">待审核</span>';
                    break;
                    case '1':
                    echo '<span class="red bold">审核通过</span>';
                    break;
                    case '2':
                    echo '<span class="red bold">审核不通过</span>';
                    break;
                    }
                    ?>
                </td>
                <td>
                    <a class="btn btn-xs btn-danger radius5"  href="{:U('User/PrivateInfo')}/id/{$vo.user_id}"/>
                    <i class="ace-icon fa">查看</i></a>
                </td>
            </tr>
        </volist>
        <tr>
            <td colspan="20" class="page">{$page}</td>
        </tr>
        </tbody>

    </table>
</div>
</block>
<block name="javascript">
    <script>
        $(function(){

            $("#search").click(function () {
                var url = $(this).attr('url');
                var query = $('.search-form').find('input,select').serialize();
                query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g, '');
                query = query.replace(/^&/g, '');
                if (url.indexOf('?') > 0) {
                    url += '&' + query;
                } else {
                    url += '?' + query;
                }
                window.location.href = url;
            });


        });
    </script>

</block>